module.exports={
	rules: [
        {
            test: /\.js|jsx$/,
            exclude: /(node_modules|bower_components)/,
            use: {
              loader: 'babel-loader'
            }
        },
        {
            test: /\.css$/,
            use: [
                {
                   loader:'style-loader' 
                },
                {
                   loader: 'css-loader',
                   options: {
                      modules: true
                   }
                }  
            ]
           
        },
        {
            test: /\.less$/,
            use: [{
                loader: "style-loader" // creates style nodes from JS strings
            }, {
                loader: "css-loader" // translates CSS into CommonJS
            }, {
                loader: "less-loader" // compiles Less to CSS
            }]
        },
        {
            test: /\.(html)$/,
            use: {
                loader: 'html-loader',
                options: {
                  attrs: [':data-src']
                }
            }
        },
        {
          test: /\.(png|svg|jpg|gif)$/,
          use: [
            'file-loader'
          ]
        },
        {
          test: /\.(woff|woff2|eot|ttf|otf)$/,
          use: [
            'file-loader'
          ]
        }
    ]
}
